package com.jetinno.utils;

import android.text.TextUtils;

/**
 * Created by zhangyuncai on 2021/9/16.
 * 记录常用的几种支付方式
 * cardcode 发送 ：{"Amount":0,"code":"35DBE4","order_no":"202303160955394443735392","product_id":0,"cmd":"cardcode","vmc_no":44437}
 * cardcode 收到 ：{"vmc_no":44437,"cmd":"products","paytype":"fastcode","Amount":0,"product_id":103,"fastcode":333,"order_no":"202303160955394443735392","paydone":true}
 */
public enum PayType {
    free("free"),//免费
    mdb_cash("mdb_cash"),//现金支付
    mdb_cashless("mdb_cashless"),//MDB刷卡
    rfidpay_money("rfidpay_money"),//卡支付（钱模式）
    rfidpay_cup("rfidpay_cup"),//卡支付（杯模式）
    rfidpay_school("rfidpay_school"),//校园卡
    XXbar("XXbar"),//付款码支付
    wx_bar("wx_bar"),//微信付款码
    ali_bar("ali_bar"),//支付宝付款码
    weier_bar("weier_bar"),//维尔付款码
    smart_bar("smart_bar"),//不用管
    coupon_bar("coupon_bar"),//兑换券
    vx820_card("mdb_card"),//信用卡支付
    vx820_elec("mdb_elec"),//电子卡
    vx820_nfc("mdb_nfc"),//NFC支付
    wxfacepay("wxfacepay"),//微信刷脸支付
    cardcode("cardcode"),//取货码支付时，发送cardcode
    fastcode("fastcode"),//取货码支付校验后，接收fastcode
    tianlong_card("tianlong_card"),//天龙刷卡
    tianlong_qr("tianlong_qr"),//天龙扫码
    tianlong_ecny("tianlong_ecny"),//天龙数币扫码
    tianlong_aqrc("tianlong_aqrc"),//天龙聚合扫码
    tianlong_wxpub("tianlong_wxpub"),//天龙微信扫码
    tianlong_alipay("tianlong_alipay"),//天龙支付宝扫码
    tianlong_bar("tianlong_bar"),//天龙反扫
    remote_production("remote_production"); //远程免费制作产品
    private final String payTypeName;

    public boolean equalsByName(String payTypeName) {
        return TextUtils.equals(this.payTypeName, payTypeName);
    }

    public String getPayTypeName() {
        return payTypeName;
    }


    PayType(String payType) {
        this.payTypeName = payType;
    }

}
